速報APP / 生產應用 / Tasker Network Event Server

Tasker Network Event Server

價格:免費

更新日期:2016-06-12

檔案大小:1.1M

目前版本:1.0.22

版本需求:Android 4.2 以上版本

官方網站:mailto:taskerhttpserver@gmail.com

Tasker Network Event Server(圖1)-速報App

TNES is a plugin that enables Tasker to trigger events when receiving messages over network. There are two ways to send messages to the plugin :

1) Sending an HTTP GET or POST to it : There is an HTTP server that can handle GET and POST requests on ressource "/" on port 8765. Variables of the POST can be filtered and transmited to Tasker as explains below.

2) Over then remote server http://thacthab.herokuapp.com : Go to this adress and register a free account. Then configure the plugin with both the login and the password you used for that account. You can send message via the website or by sending a GET or POST request to http://thacthab.herokuapp.com/broadcast . The GET or POST request MUST contains following variables :

Tasker Network Event Server(圖2)-速報App

- login : the login you used for the account

- pass : the password you used for your acount

- title : a title, actually just some text describing the message

Tasker Network Event Server(圖3)-速報App

- message : a message, can be simple text or a serialized JSON.

In this case, the plugin will consider following variables :

- senderName : its value will be equal to the login used to send the request.

Tasker Network Event Server(圖4)-速報App

- title : the title of the message

- message : the message.

- if message can be parsed as a JSON, then every attribute of it will be processed as variables.

Tasker Network Event Server(圖5)-速報App

The plugin will trigger the event if the variables contains in the message are not filtered. If at least one filter is evaluated as false, then the event is not triggered. Filters can be expressed when configuring an instance like this (one filter per line) :

variable

variable == value

Tasker Network Event Server(圖6)-速報App

variable != value

The filter "variable" means that variable should be present in the message, whatever its value.

The filter "variable == value" means that variable should be present in the message and that its value must be equal to "value".

Tasker Network Event Server(圖7)-速報App

The filter "variable == value" means that variable should be present in the message and that its value must be different from "value".

Every variable transmited via the network call will be translated into Tasker variable if the event is fired. The variable are named like this: %tpe_VARNAME, where VARNAME is the name of the variable in the network call, VARNAME is ALWAYS lower case so that the variable is local to the rule from the Tasker point of view.